package org.vison.wonfu.framework.soa.discovery;

import org.vison.wonfu.framework.soa.annotation.LoadBalance;

import java.util.List;

public interface LoadBalanceAlgorithm {

    void setServiceInstances(List<ServiceInstance> serviceInstances);

    /**
     * 选择一个可用的服务实例
     * @return 服务实例
     */
    ServiceInstance select();

    LoadBalance getType();
}
